package com.kitty.spring.annotationdriven.beans;

import javax.annotation.PostConstruct;
import javax.annotation.PreDestroy;

/**
 * @Description
 * @Author SHEN
 * @Date 2020/12/7
 */
public class BeanLifecycle {

    public BeanLifecycle() {
        System.out.println("创建bean实例");
    }

    @PostConstruct
    public void init(){
        System.out.println("初始化bean实例！！！");
    }


    @PreDestroy
    public void destroy(){
        System.out.println("销毁bean实例！！！");
    }
}
